package backend

import (
	"fmt"
	"os"
)

func ReadFile(path string) []byte {
	data, err := os.ReadFile(path)
	if err != nil {
		if os.IsNotExist(err) {
			fmt.Printf("File not found: %s\n", path)
		} else {
			fmt.Printf("Error reading file %s: %v\n", path, err)
		}
		return nil
	}
	return data
}
